public class CMRHelper
{
    /*
    // Below is test code that is no longer used. It can be deleted or used for reference
    @future   
    public static void CreateBillingTaskAsync(String opportunityId)
    {
        //CreateBillingTask(opportunityId);
        
        Fulfillment_Task__c task = new Fulfillment_Task__c();
        recordtype[] billingRT = [Select  r.Id, r.SobjectType, r.Name From RecordType r where sobjecttype ='Fulfillment_Task__c' and Name = 'Billing'];

        task.RecordTypeId = billingRT[0].Id;
        task.Opportunity__c = opportunityId;
        insert task;
        
    }
    
    public static void CreateBillingTask(String opportunityId) 
    {
        Fulfillment_Task__c task = new Fulfillment_Task__c();
        recordtype[] billingRT = [Select  r.Id, r.SobjectType, r.Name From RecordType r where sobjecttype ='Fulfillment_Task__c' and Name = 'Billing'];

        task.RecordTypeId = billingRT[0].Id;
        task.Opportunity__c = opportunityId;
        insert task;
    }
    */
}